package cook.enums;

import lombok.Getter;

/**
 * @Author B站：爱计算机的小天才 QQ167775665
 * @Date 2022/08/23
 **/
public enum  BizCodeEnum {


    /**
     * 通用操作码
     */
    OPS_REPEAT(110001,"重复操作"),
    OPS_OK(110002,"重复确认"),


    /**
     * 账号
     */
    ACCOUNT_REPEAT(250001,"账号已经存在"),
    ACCOUNT_UNREGISTER(250002,"账号不存在"),
    ACCOUNT_PWD_ERROR(250003,"账号或者密码错误"),
    ACCOUNT_UNLOGIN(250004,"账号未登录"),
    ACCOUNT_REGIST_SUCCESS(250005,"注册成功，请前往登录！"),
    ACCOUNT_CHANGE_SUCCESS(250006,"更改用户密码成功！"),
    ACCOUNT_CHANGE_ERROR(250007,"更改用户密码失败！"),
    ACCOUNT_UPDATE_SUCCESS(250008,"用户信息更新成功！"),
    ACCOUNT_UPDATE_ERROR(250009,"用户信息更新失败！"),
    ACCOUNT_BIND_WEICHAT(250010,"您所输入的微信账号已经绑定过了！"),

    /**
     * 冰箱
     */
    ADD_FRIDGE_GOODS_SUCCESS(260001, "添加食材成功"),
    ADD_FRIDGE_GOODS_ERROR(260002, "添加食材失败"),

    DEL_FRIDGE_GOODS_SUCCESS(260003, "删除食材成功"),

    DEL_FRIDGE_GOODS_ERROR(260004, "删除食材失败"),

    QUERY_FRIDGE_GOODS_ERROR(260005, "查询食材详情失败"),

    LIST_FRIDGE_GOODS_ERROR(260006, "查询食材列表失败"),

    MOD_FRIDGE_GOODS_SUCCESS(260007, "修改食材成功"),

    MOD_FRIDGE_GOODS_ERROR(260008, "修改食材失败"),
    TEST(1000000, "666");
    @Getter
    private String message;

    @Getter
    private int code;

    private BizCodeEnum(int code, String message){
        this.code = code;
        this.message = message;
    }



}
